<%@page import="com.mbbmap.util.EncryptionHelper"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import = "org.json.simple.*, java.util.TreeMap, com.classes.Casemast, com.classes.CaseOutlet, com.classes.Outlet, com.classes.CasemastFactory, java.util.ArrayList, java.text.DecimalFormat" %>
<%@ page import = "com.mbbmap.util.Constants" %>
<%@ page import = "com.mbbmap.security.dao.*" %>
<%@ include file="/jsp/map/include/user-dao.jsp" %>	
<%

long merchant_id = 0;
long case_id = 0;
long o_id=0;
double b6=0,c6=0,d6=0,e6=0,f6=0,g6=0,h6=0;
double b7=0,b8=0,b12=0,b16=0,b17=0,b18=0,b19=0,b20=0,b21=0,b23=0,b25=0,b26=0,b27=0,b28=0,b29=0,b30=0,b32=0,b34=0,b35=0,b37=0,b38=0,b39=0,b41=0,b43=0,b44=0,b45=0,b46=0,b47=0,b50=0,b51=0,b52=0,b53=0,b54=0,b55=0,b56=0,b57=0,b58=0,b59=0,b61=0,b62=0,b63=0,b64=0;
double c7=0,c8=0,c12=0,c16=0,c17=0,c18=0,c19=0,c20=0,c21=0,c23=0,c25=0,c26=0,c27=0,c28=0,c29=0,c30=0,c32=0,c34=0,c35=0,c37=0,c38=0,c39=0,c41=0,c43=0,c44=0,c45=0,c46=0,c47=0,c50=0,c51=0,c52=0,c53=0,c54=0,c55=0,c56=0,c57=0,c58=0,c59=0,c61=0,c62=0,c63=0,c64=0;
double d7=0,d8=0,d12=0,d16=0,d17=0,d18=0,d19=0,d20=0,d21=0,d23=0,d25=0,d26=0,d27=0,d28=0,d29=0,d30=0,d32=0,d34=0,d35=0,d37=0,d38=0,d39=0,d41=0,d43=0,d44=0,d45=0,d46=0,d47=0,d50=0,d51=0,d52=0,d53=0,d54=0,d55=0,d56=0,d57=0,d58=0,d59=0,d61=0,d62=0,d63=0,d64=0;
double e7=0,e8=0,e12=0,e16=0,e17=0,e18=0,e19=0,e20=0,e21=0,e23=0,e25=0,e26=0,e27=0,e28=0,e29=0,e30=0,e32=0,e34=0,e35=0,e37=0,e38=0,e39=0,e41=0,e43=0,e44=0,e45=0,e46=0,e47=0,e50=0,e51=0,e52=0,e53=0,e54=0,e55=0,e56=0,e57=0,e58=0,e59=0,e61=0,e62=0,e63=0,e64=0;
double f7=0,f8=0,f12=0,f16=0,f17=0,f18=0,f19=0,f20=0,f21=0,f23=0,f25=0,f26=0,f27=0,f28=0,f29=0,f30=0,f32=0,f34=0,f35=0,f37=0,f38=0,f39=0,f41=0,f43=0,f44=0,f45=0,f46=0,f47=0,f50=0,f51=0,f52=0,f53=0,f54=0,f55=0,f56=0,f57=0,f58=0,f59=0,f61=0,f62=0,f63=0,f64=0;
double g7=0,g8=0,g12=0,g16=0,g17=0,g18=0,g19=0,g20=0,g21=0,g23=0,g25=0,g26=0,g27=0,g28=0,g29=0,g30=0,g32=0,g34=0,g35=0,g37=0,g38=0,g39=0,g41=0,g43=0,g44=0,g45=0,g46=0,g47=0,g50=0,g51=0,g52=0,g53=0,g54=0,g55=0,g56=0,g57=0,g58=0,g59=0,g61=0,g62=0,g63=0,g64=0;
double h8=0,h12=0,h16=0,h17=0,h18=0,h19=0,h20=0,h21=0,h23=0,h25=0,h26=0,h27=0,h28=0,h29=0,h30=0,h32=0,h34=0,h35=0,h37=0,h38=0,h39=0,h41=0,h43=0,h44=0,h45=0,h46=0,h47=0,h50=0,h51=0,h52=0,h53=0,h54=0,h55=0,h56=0,h57=0,h58=0,h59=0,h61=0,h62=0,h63=0,h64=0;
double j11=55,j12=0;
double b14=0,c14=0,d14=0,e14=0,f14=0,g14=0,h14=0;

String reg_name="";
//calculation variables
DecimalFormat twoDForm = new DecimalFormat("#.00");
j12= Double.parseDouble(twoDForm.format(100-j11));

if(request.getAttribute("m_case") != null){
	Casemast m_case = (Casemast) request.getAttribute("m_case");
	merchant_id = m_case.getMerchant().getId();
	case_id = m_case.getId();
	reg_name = ((Casemast)request.getAttribute("m_case")).getMerchant().getRegisteredName();	
}


if(request.getAttribute("c_outlet") != null) {
	CaseOutlet c_outlet = (CaseOutlet) request.getAttribute("c_outlet");
	
	if(c_outlet.getOutlet().getMDRRate().length() > 0) {
		JSONObject obj = (JSONObject) JSONValue.parse(c_outlet.getOutlet().getMDRRate());
		
		if(obj != null)
		{
			b6 = (obj.get("468") == null || obj.get("468").toString().length() <= 0) ? 0 : Double.parseDouble(obj.get("468").toString());
			c6 = (obj.get("470") == null || obj.get("470").toString().length() <= 0) ? 0 : Double.parseDouble(obj.get("470").toString());
			d6 = (obj.get("471") == null || obj.get("471").toString().length() <= 0) ? 0 : Double.parseDouble(obj.get("471").toString());
			e6 = (obj.get("472") == null || obj.get("472").toString().length() <= 0) ? 0 : Double.parseDouble(obj.get("472").toString());
			f6 = (obj.get("473") == null || obj.get("473").toString().length() <= 0) ? 0 : Double.parseDouble(obj.get("473").toString());
			g6 = (obj.get("474") == null || obj.get("474").toString().length() <= 0) ? 0 : Double.parseDouble(obj.get("474").toString());
			
		}
		
		JSONObject obj2 = (JSONObject) JSONValue.parse(c_outlet.getOutlet().getEzypay());
		if(obj2 != null){
			b7 = (obj2.get("ezycof6") == null) ? 0 : Double.parseDouble(obj2.get("ezycof6").toString());
			c7 = (obj2.get("ezycof12") == null) ? 0 : Double.parseDouble(obj2.get("ezycof12").toString());
			d7 = (obj2.get("ezycof18") == null) ? 0 : Double.parseDouble(obj2.get("ezycof18").toString());
			e7 = (obj2.get("ezycof24") == null) ? 0 : Double.parseDouble(obj2.get("ezycof24").toString());
			f7 = (obj2.get("ezycof30") == null) ? 0 : Double.parseDouble(obj2.get("ezycof30").toString());
			g7 = (obj2.get("ezycof36") == null) ? 0 : Double.parseDouble(obj2.get("ezycof36").toString());
			
			b12 = (obj2.get("vmcs6") == null) ? 0 : Double.parseDouble(obj2.get("vmcs6").toString());
			c12 = (obj2.get("vmcs12") == null) ? 0 : Double.parseDouble(obj2.get("vmcs12").toString());
			d12 = (obj2.get("vmcs18") == null) ? 0 : Double.parseDouble(obj2.get("vmcs18").toString());
			e12 = (obj2.get("vmcs24") == null) ? 0 : Double.parseDouble(obj2.get("vmcs24").toString());
			f12 = (obj2.get("vmcs30") == null) ? 0 : Double.parseDouble(obj2.get("vmcs30").toString());
			g12 = (obj2.get("vmcs36") == null) ? 0 : Double.parseDouble(obj2.get("vmcs36").toString());
			
			b32 = (obj2.get("asales6") == null) ? 0 : Double.parseDouble(obj2.get("asales6").toString());
			c32 = (obj2.get("asales12") == null) ? 0 : Double.parseDouble(obj2.get("asales12").toString());
			d32 = (obj2.get("asales18") == null) ? 0 : Double.parseDouble(obj2.get("asales18").toString());
			e32 = (obj2.get("asales24") == null) ? 0 : Double.parseDouble(obj2.get("asales24").toString());
			f32 = (obj2.get("asales30") == null) ? 0 : Double.parseDouble(obj2.get("asales30").toString());
			g32 = (obj2.get("asales36") == null) ? 0 : Double.parseDouble(obj2.get("asales36").toString());
			
			j11 = (obj2.get("visap") == null) ? 55 : Double.parseDouble(obj2.get("visap").toString());
			
			//calculation start here
			
			try {
				j12= Double.parseDouble(twoDForm.format(100-j11));
				h12 = Double.parseDouble(twoDForm.format(b12+c12+d12+e12+f12+g12));
				h32 = Double.parseDouble(twoDForm.format(b32+c32+d32+e32+f32+g32));
	
				b8= Double.parseDouble(twoDForm.format(b12+b32));
				c8= Double.parseDouble(twoDForm.format(c12+c32));
				d8= Double.parseDouble(twoDForm.format(d12+d32));
				e8= Double.parseDouble(twoDForm.format(e12+e32));
				f8= Double.parseDouble(twoDForm.format(f12+f32));
				g8= Double.parseDouble(twoDForm.format(g12+g32));
				h8 = Double.parseDouble(twoDForm.format(b8+c8+d8+e8+f8+g8));
				
				b14= Double.parseDouble(twoDForm.format(b12*j11/100));
				c14= Double.parseDouble(twoDForm.format(c12*j11/100));
				d14= Double.parseDouble(twoDForm.format(d12*j11/100));
				e14= Double.parseDouble(twoDForm.format(e12*j11/100));
				f14= Double.parseDouble(twoDForm.format(f12*j11/100));
				g14= Double.parseDouble(twoDForm.format(g12*j11/100));
				
				
				b19=Double.parseDouble(twoDForm.format((b12)*(j11)/100));
				b16=Double.parseDouble(twoDForm.format((b19)*1));
				b17=Double.parseDouble(twoDForm.format((b16)*(b6)/100));
				b19=Double.parseDouble(twoDForm.format((b16)*(b7)/100));
				b20=Double.parseDouble(twoDForm.format((b16)*0.0004));
				b21=Double.parseDouble(twoDForm.format((b17)-(b19)-(b20)));
				b23=Double.parseDouble(twoDForm.format((b12)*0.4));
				b25=Double.parseDouble(twoDForm.format((b23)*1));
				b26=Double.parseDouble(twoDForm.format((b25)*b6/100));
				b28=Double.parseDouble(twoDForm.format((b25)*b7/100));
				b29=Double.parseDouble(twoDForm.format((b25)*0.0006));
				b30=Double.parseDouble(twoDForm.format((b26)-(b28)-(b29)));
				b34=Double.parseDouble(twoDForm.format((b32)));
				b35=Double.parseDouble(twoDForm.format((b34)*(b6)/100));
				b37=Double.parseDouble(twoDForm.format((b34)*(b7)/100));
				b38=Double.parseDouble(twoDForm.format((b34)*0.0058));
				b39=Double.parseDouble(twoDForm.format((b35)-(b37)-(b38)));
				b41=Double.parseDouble(twoDForm.format((b21)+(b30)+(b39)));
				b43=Double.parseDouble(twoDForm.format((b41)*0.75));
				
				if(b8!=0)b50=Double.parseDouble(twoDForm.format((b41)/(b8)*100));
				if(b14!=0)b51=Double.parseDouble(twoDForm.format((b21)/(b14)*100));
				if(b23!=0)b52=Double.parseDouble(twoDForm.format((b30)/(b23)*100));
				if(b32!=0)b53=Double.parseDouble(twoDForm.format((b39)/(b32)*100));
				
				b54=Double.parseDouble(twoDForm.format((b20)+(b29)+(b38)));
				b55=Double.parseDouble(twoDForm.format((b17)-(b19)+(b26)-(b28)+(b35)-(b37)));
				
				if(b55!=0)b56=Double.parseDouble(twoDForm.format((b54)/(b55)*100));
				
				b61=Double.parseDouble(twoDForm.format(((b8)*81.6/100)+((b55)*15/100*12.5)));
				
				if(b61!=0)b57=Double.parseDouble(twoDForm.format(((b41)/(b61))*2*100));
				
				b62=Double.parseDouble(twoDForm.format((b61)*13/100));
				b64=Double.parseDouble(twoDForm.format((b62)*60/100));
				
				if(b62!=0)b59=Double.parseDouble(twoDForm.format(((b43)/(b62))*2*100));
				
				b63=Double.parseDouble(twoDForm.format((b62)*40/100));
				b44=Double.parseDouble(twoDForm.format((b63)*0.04));
				b45=Double.parseDouble(twoDForm.format((b43)-(b44)));
				b46=Double.parseDouble(twoDForm.format((b64)*0.11));
				b47=Double.parseDouble(twoDForm.format((b45)-(b46)));
				
				if(b64!=0)b58=Double.parseDouble(twoDForm.format(((b45)/(b64))*2*100));
				
				c19=Double.parseDouble(twoDForm.format((c12)*(j11)/100));
				c16=Double.parseDouble(twoDForm.format((c19)*1));
				c17=Double.parseDouble(twoDForm.format((c16)*(c6)/100));
				c19=Double.parseDouble(twoDForm.format((c16)*(c7)/100));
				c20=Double.parseDouble(twoDForm.format((c16)*0.0004));
				c21=Double.parseDouble(twoDForm.format((c17)-(c19)-(c20)));
				c23=Double.parseDouble(twoDForm.format((c12)*0.4));
				c25=Double.parseDouble(twoDForm.format((c23)*1));
				c26=Double.parseDouble(twoDForm.format((c25)*c6/100));
				c28=Double.parseDouble(twoDForm.format((c25)*c7/100));
				c29=Double.parseDouble(twoDForm.format((c25)*0.0006));
				c30=Double.parseDouble(twoDForm.format((c26)-(c28)-(c29)));
				c34=Double.parseDouble(twoDForm.format((c32)));
				c35=Double.parseDouble(twoDForm.format((c34)*(c6)/100));
				c37=Double.parseDouble(twoDForm.format((c34)*(c7)/100));
				c38=Double.parseDouble(twoDForm.format((c34)*0.0058));
				c39=Double.parseDouble(twoDForm.format((c35)-(c37)-(c38)));
				c41=Double.parseDouble(twoDForm.format((c21)+(c30)+(c39)));
				c43=Double.parseDouble(twoDForm.format((c41)*0.75));
				
				if(c8!=0)c50=Double.parseDouble(twoDForm.format((c41)/(c8)*100));
				if(c14!=0)c51=Double.parseDouble(twoDForm.format((c21)/(c14)*100));
				if(c23!=0)c52=Double.parseDouble(twoDForm.format((c30)/(c23)*100));
				if(c32!=0)c53=Double.parseDouble(twoDForm.format((c39)/(c32)*100));
				
				c54=Double.parseDouble(twoDForm.format((c20)+(c29)+(c38)));
				c55=Double.parseDouble(twoDForm.format((c17)-(c19)+(c26)-(c28)+(c35)-(c37)));
				
				if(c55!=0)c56=Double.parseDouble(twoDForm.format((c54)/(c55)*100));
				
				c61=Double.parseDouble(twoDForm.format(((c8)*81.6/100)+((c55)*15/100*12.5)));
				
				if(c61!=0)c57=Double.parseDouble(twoDForm.format(((c41)/(c61))*100));
				
				c62=Double.parseDouble(twoDForm.format((c61)*13/100));
				c64=Double.parseDouble(twoDForm.format((c62)*60/100));
				
				if(c62!=0)c59=Double.parseDouble(twoDForm.format(((c43)/(c62))*100));
				
				c63=Double.parseDouble(twoDForm.format((c62)*40/100));
				c44=Double.parseDouble(twoDForm.format((c63)*0.04));
				c45=Double.parseDouble(twoDForm.format((c43)-(c44)));
				c46=Double.parseDouble(twoDForm.format((c64)*0.11));
				c47=Double.parseDouble(twoDForm.format((c45)-(c46)));
				
				if(c64!=0)c58=Double.parseDouble(twoDForm.format(((c45)/(c64))*100));
				
				d19=Double.parseDouble(twoDForm.format((d12)*(j11)/100));
				d16=Double.parseDouble(twoDForm.format((d19)*1));
				d17=Double.parseDouble(twoDForm.format((d16)*(d6)/100));
				d19=Double.parseDouble(twoDForm.format((d16)*(d7)/100));
				d20=Double.parseDouble(twoDForm.format((d16)*0.0004));
				d21=Double.parseDouble(twoDForm.format((d17)-(d19)-(d20)));
				d23=Double.parseDouble(twoDForm.format((d12)*0.4));
				d25=Double.parseDouble(twoDForm.format((d23)*1));
				d26=Double.parseDouble(twoDForm.format((d25)*d6/100));
				d28=Double.parseDouble(twoDForm.format((d25)*d7/100));
				d29=Double.parseDouble(twoDForm.format((d25)*0.0006));
				d30=Double.parseDouble(twoDForm.format((d26)-(d28)-(d29)));
				d34=Double.parseDouble(twoDForm.format((d32)));
				d35=Double.parseDouble(twoDForm.format((d34)*(d6)/100));
				d37=Double.parseDouble(twoDForm.format((d34)*(d7)/100));
				d38=Double.parseDouble(twoDForm.format((d34)*0.0058));
				d39=Double.parseDouble(twoDForm.format((d35)-(d37)-(d38)));
				d41=Double.parseDouble(twoDForm.format((d21)+(d30)+(d39)));
				d43=Double.parseDouble(twoDForm.format((d41)*0.75));
				
				if(d8!=0)d50=Double.parseDouble(twoDForm.format((d41)/(d8)*100));
				if(d14!=0)d51=Double.parseDouble(twoDForm.format((d21)/(d14)*100));
				if(d23!=0)d52=Double.parseDouble(twoDForm.format((d30)/(d23)*100));
				if(d32!=0)d53=Double.parseDouble(twoDForm.format((d39)/(d32)*100));
				
				d54=Double.parseDouble(twoDForm.format((d20)+(d29)+(d38)));
				d55=Double.parseDouble(twoDForm.format((d17)-(d19)+(d26)-(d28)+(d35)-(d37)));
				
				if(d55!=0)d56=Double.parseDouble(twoDForm.format((d54)/(d55)*100));
				
				d61=Double.parseDouble(twoDForm.format(((d8)*81.6/100)+((d55)*15/100*12.5)));
				
				if(d61!=0)d57=Double.parseDouble(twoDForm.format(((d41)/(d61))*100*12/18));
				
				d62=Double.parseDouble(twoDForm.format((d61)*13/100));
				d64=Double.parseDouble(twoDForm.format((d62)*60/100));
				
				if(d62!=0)d59=Double.parseDouble(twoDForm.format(((d43)/(d62))*100*12/18));
				
				d63=Double.parseDouble(twoDForm.format((d62)*40/100));
				d44=Double.parseDouble(twoDForm.format((d63)*0.04));
				d45=Double.parseDouble(twoDForm.format((d43)-(d44)));
				d46=Double.parseDouble(twoDForm.format((d64)*0.11));
				d47=Double.parseDouble(twoDForm.format((d45)-(d46)));
				
				if(d64!=0)d58=Double.parseDouble(twoDForm.format(((d45)/(d64))*100*12/18));
				
				e19=Double.parseDouble(twoDForm.format((e12)*(j11)/100));
				e16=Double.parseDouble(twoDForm.format((e19)*1));
				e17=Double.parseDouble(twoDForm.format((e16)*(e6)/100));
				e19=Double.parseDouble(twoDForm.format((e16)*(e7)/100));
				e20=Double.parseDouble(twoDForm.format((e16)*0.0004));
				e21=Double.parseDouble(twoDForm.format((e17)-(e19)-(e20)));
				e23=Double.parseDouble(twoDForm.format((e12)*0.4));
				e25=Double.parseDouble(twoDForm.format((e23)*1));
				e26=Double.parseDouble(twoDForm.format((e25)*e6/100));
				e28=Double.parseDouble(twoDForm.format((e25)*e7/100));
				e29=Double.parseDouble(twoDForm.format((e25)*0.0006));
				e30=Double.parseDouble(twoDForm.format((e26)-(e28)-(e29)));
				e34=Double.parseDouble(twoDForm.format((e32)));
				e35=Double.parseDouble(twoDForm.format((e34)*(e6)/100));
				e37=Double.parseDouble(twoDForm.format((e34)*(e7)/100));
				e38=Double.parseDouble(twoDForm.format((e34)*0.0058));
				e39=Double.parseDouble(twoDForm.format((e35)-(e37)-(e38)));
				e41=Double.parseDouble(twoDForm.format((e21)+(e30)+(e39)));
				e43=Double.parseDouble(twoDForm.format((e41)*0.75));
				
				if(e8!=0)e50=Double.parseDouble(twoDForm.format((e41)/(e8)*100));
				if(e14!=0)e51=Double.parseDouble(twoDForm.format((e21)/(e14)*100));
				if(e23!=0)e52=Double.parseDouble(twoDForm.format((e30)/(e23)*100));
				if(e32!=0)e53=Double.parseDouble(twoDForm.format((e39)/(e32)*100));
				
				e54=Double.parseDouble(twoDForm.format((e20)+(e29)+(e38)));
				e55=Double.parseDouble(twoDForm.format((e17)-(e19)+(e26)-(e28)+(e35)-(e37)));
				
				if(e55!=0)e56=Double.parseDouble(twoDForm.format((e54)/(e55)*100));
				
				e61=Double.parseDouble(twoDForm.format(((e8)*81.6/100)+((e55)*15/100*12.5)));
				
				if(e61!=0)e57=Double.parseDouble(twoDForm.format(((e41)/(e61))*100));
				
				e62=Double.parseDouble(twoDForm.format((e61)*13/100/2));
				e64=Double.parseDouble(twoDForm.format((e62)*60/100));
				
				if(e62!=0)e59=Double.parseDouble(twoDForm.format(((e43)/(e62))*100));
				
				e63=Double.parseDouble(twoDForm.format((e62)*40/100));
				e44=Double.parseDouble(twoDForm.format((e63)*0.04));
				e45=Double.parseDouble(twoDForm.format((e43)-(e44)));
				e46=Double.parseDouble(twoDForm.format((e64)*0.11));
				e47=Double.parseDouble(twoDForm.format((e45)-(e46)));
				
				if(e64!=0)e58=Double.parseDouble(twoDForm.format(((e45)/(e64))*100));
				
				f19=Double.parseDouble(twoDForm.format((f12)*(j11)/100));
				f16=Double.parseDouble(twoDForm.format((f19)*1));
				f17=Double.parseDouble(twoDForm.format((f16)*(f6)/100));
				f19=Double.parseDouble(twoDForm.format((f16)*(f7)/100));
				f20=Double.parseDouble(twoDForm.format((f16)*0.0004));
				f21=Double.parseDouble(twoDForm.format((f17)-(f19)-(f20)));
				f23=Double.parseDouble(twoDForm.format((f12)*0.4));
				f25=Double.parseDouble(twoDForm.format((f23)*1));
				f26=Double.parseDouble(twoDForm.format((f25)*f6/100));
				f28=Double.parseDouble(twoDForm.format((f25)*f7/100));
				f29=Double.parseDouble(twoDForm.format((f25)*0.0006));
				f30=Double.parseDouble(twoDForm.format((f26)-(f28)-(f29)));
				f34=Double.parseDouble(twoDForm.format((f32)));
				f35=Double.parseDouble(twoDForm.format((f34)*(f6)/100));
				f37=Double.parseDouble(twoDForm.format((f34)*(f7)/100));
				f38=Double.parseDouble(twoDForm.format((f34)*0.0058));
				f39=Double.parseDouble(twoDForm.format((f35)-(f37)-(f38)));
				f41=Double.parseDouble(twoDForm.format((f21)+(f30)+(f39)));
				f43=Double.parseDouble(twoDForm.format((f41)*0.75));
				
				if(f8!=0)f50=Double.parseDouble(twoDForm.format((f41)/(f8)*100));
				if(f14!=0)f51=Double.parseDouble(twoDForm.format((f21)/(f14)*100));
				if(f23!=0)f52=Double.parseDouble(twoDForm.format((f30)/(f23)*100));
				if(f32!=0)f53=Double.parseDouble(twoDForm.format((f39)/(f32)*100));
				
				f54=Double.parseDouble(twoDForm.format((f20)+(f29)+(f38)));
				f55=Double.parseDouble(twoDForm.format((f17)-(f19)+(f26)-(f28)+(f35)-(f37)));
				
				if(f55!=0)f56=Double.parseDouble(twoDForm.format((f54)/(f55)*100));
				
				f61=Double.parseDouble(twoDForm.format(((f8)*81.6/100)+((f55)*15/100*12.5)));
				
				if(f61!=0)f57=Double.parseDouble(twoDForm.format(((f41)/(f61))*100*12/30));
				
				f62=Double.parseDouble(twoDForm.format((f61)*13/100));
				f64=Double.parseDouble(twoDForm.format((f62)*60/100));
				
				if(f62!=0)f59=Double.parseDouble(twoDForm.format(((f43)/(f62))*100*12/30));
				
				f63=Double.parseDouble(twoDForm.format((f62)*40/100));
				f44=Double.parseDouble(twoDForm.format((f63)*0.04));
				f45=Double.parseDouble(twoDForm.format((f43)-(f44)));
				f46=Double.parseDouble(twoDForm.format((f64)*0.11));
				f47=Double.parseDouble(twoDForm.format((f45)-(f46)));
				
				if(f64!=0)f58=Double.parseDouble(twoDForm.format(((f45)/(f64))*100*12/30));
				
				g19=Double.parseDouble(twoDForm.format((g12)*(j11)/100));
				g16=Double.parseDouble(twoDForm.format((g19)*1));
				g17=Double.parseDouble(twoDForm.format((g16)*(g6)/100));
				g19=Double.parseDouble(twoDForm.format((g16)*(g7)/100));
				g20=Double.parseDouble(twoDForm.format((g16)*0.0004));
				g21=Double.parseDouble(twoDForm.format((g17)-(g19)-(g20)));
				g23=Double.parseDouble(twoDForm.format((g12)*0.4));
				g25=Double.parseDouble(twoDForm.format((g23)*1));
				g26=Double.parseDouble(twoDForm.format((g25)*g6/100));
				g28=Double.parseDouble(twoDForm.format((g25)*g7/100));
				g29=Double.parseDouble(twoDForm.format((g25)*0.0006));
				g30=Double.parseDouble(twoDForm.format((g26)-(g28)-(g29)));
				g34=Double.parseDouble(twoDForm.format((g32)));
				g35=Double.parseDouble(twoDForm.format((g34)*(g6)/100));
				g37=Double.parseDouble(twoDForm.format((g34)*(g7)/100));
				g38=Double.parseDouble(twoDForm.format((g34)*0.0058));
				g39=Double.parseDouble(twoDForm.format((g35)-(g37)-(g38)));
				g41=Double.parseDouble(twoDForm.format((g21)+(g30)+(g39)));
				g43=Double.parseDouble(twoDForm.format((g41)*0.75));
				
				if(g8!=0)g50=Double.parseDouble(twoDForm.format((g41)/(g8)*100));
				if(g14!=0)g51=Double.parseDouble(twoDForm.format((g21)/(g14)*100));
				if(g23!=0)g52=Double.parseDouble(twoDForm.format((g30)/(g23)*100));
				if(g32!=0)g53=Double.parseDouble(twoDForm.format((g39)/(g32)*100));
				
				g54=Double.parseDouble(twoDForm.format((g20)+(g29)+(g38)));
				g55=Double.parseDouble(twoDForm.format((g17)-(g19)+(g26)-(g28)+(g35)-(g37)));
				
				if(g55!=0)g56=Double.parseDouble(twoDForm.format((g54)/(g55)*100));
				
				g61=Double.parseDouble(twoDForm.format(((g8)*81.6/100)+((g55)*15/100*12.5)));
				
				if(g61!=0)g57=Double.parseDouble(twoDForm.format(((g41)/(g61))*100/3));
				
				g62=Double.parseDouble(twoDForm.format((g61)*13/100));
				g64=Double.parseDouble(twoDForm.format((g62)*60/100));
				
				if(g62!=0)g59=Double.parseDouble(twoDForm.format(((g43)/(g62))*100/3));
				
				g63=Double.parseDouble(twoDForm.format((g62)*40/100));
				g44=Double.parseDouble(twoDForm.format((g63)*0.04));
				g45=Double.parseDouble(twoDForm.format((g43)-(g44)));
				g46=Double.parseDouble(twoDForm.format((g64)*0.11));
				g47=Double.parseDouble(twoDForm.format((g45)-(g46)));
				
				if(g64!=0)g58=Double.parseDouble(twoDForm.format(((g45)/(g64))*100/3));
				
				h19=Double.parseDouble(twoDForm.format((b19)+(c19)+(d19)+(e19)+(f19)+(g19)));
				h16=Double.parseDouble(twoDForm.format((b16)+(c16)+(d16)+(e16)+(f16)+(g16)));
				h17=Double.parseDouble(twoDForm.format((b17)+(c17)+(d17)+(e17)+(f17)+(g17)));
				h19=Double.parseDouble(twoDForm.format((b19)+(c19)+(d19)+(e19)+(f19)+(g19)));
				h20=Double.parseDouble(twoDForm.format((b20)+(c20)+(d20)+(e20)+(f20)+(g20)));
				h21=Double.parseDouble(twoDForm.format((b21)+(c21)+(d21)+(e21)+(f21)+(g21)));
				h23=Double.parseDouble(twoDForm.format((b23)+(c23)+(d23)+(e23)+(f23)+(g23)));
				h25=Double.parseDouble(twoDForm.format((b25)+(c25)+(d25)+(e25)+(f25)+(g25)));
				h26=Double.parseDouble(twoDForm.format((b26)+(c26)+(d26)+(e26)+(f26)+(g26)));
				h28=Double.parseDouble(twoDForm.format((b28)+(c28)+(d28)+(e28)+(f28)+(g28)));
				h29=Double.parseDouble(twoDForm.format((b29)+(c29)+(d29)+(e29)+(f29)+(g29)));
				h30=Double.parseDouble(twoDForm.format((b30)+(c30)+(d30)+(e30)+(f30)+(g30)));
				h34=Double.parseDouble(twoDForm.format((b34)+(c34)+(d34)+(e34)+(f34)+(g34)));
				h35=Double.parseDouble(twoDForm.format((b35)+(c35)+(d35)+(e35)+(f35)+(g35)));
				h37=Double.parseDouble(twoDForm.format((b37)+(c37)+(d37)+(e37)+(f37)+(g37)));
				h38=Double.parseDouble(twoDForm.format((b38)+(c38)+(d38)+(e38)+(f38)+(g38)));
				h39=Double.parseDouble(twoDForm.format((b39)+(c39)+(d39)+(e39)+(f39)+(g39)));
				h41=Double.parseDouble(twoDForm.format((b41)+(c41)+(d41)+(e41)+(f41)+(g41)));
				
				if(h8!=0)h50=Double.parseDouble(twoDForm.format((h41)/(h8)*100));
				if(h14!=0)h51=Double.parseDouble(twoDForm.format((h21)/(h14)*100));
				if(h23!=0)h52=Double.parseDouble(twoDForm.format((h30)/(h23)*100));
				if(h32!=0)h53=Double.parseDouble(twoDForm.format((h39)/(h32)*100));
				
				h54=Double.parseDouble(twoDForm.format((h20)+(h29)+(h38)));
				h55=Double.parseDouble(twoDForm.format((h17)-(h19)+(h26)-(h28)+(h35)-(h37)));
				
				if(h55!=0)h56=Double.parseDouble(twoDForm.format((h54)/(h55)*100));
			
			} catch (Exception e){
				e.printStackTrace();
			}
		}
		

		
	}	
}


String case_outlet_opt = "<option value=\"\"></option>";

if(request.getAttribute("c_outlets") != null) {
	ArrayList<CaseOutlet> c_outlets = ((ArrayList<CaseOutlet>)request.getAttribute("c_outlets"));

	for(CaseOutlet c : c_outlets) {
		case_outlet_opt += "<option value=\"" + EncryptionHelper.encrypt(c.getOutlet().getId()+"") + "\">" + c.getOutlet().getName() + "</option>";
	}
}

if(request.getAttribute("c_outlet") != null) {
	case_outlet_opt = case_outlet_opt.replace("<option value=\"" + EncryptionHelper.encrypt(((CaseOutlet)request.getAttribute("c_outlet")).getOutlet().getId()+"") + "\">", "<option value=\"" + EncryptionHelper.encrypt(((CaseOutlet)request.getAttribute("c_outlet")).getOutlet().getId()+"") + "\" selected>");
	o_id=((CaseOutlet)request.getAttribute("c_outlet")).getOutlet().getId();

}

//o_id=((CaseOutlet)request.getAttribute("c_outlet")).getOutlet().getId();




%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/jsp/map/include/html-meta.jsp" />
<script src="<%= request.getContextPath() %>/js/merchant.js"></script>
<script src="<%= request.getContextPath() %>/js/statusaction.js"></script>
<script src="<%= request.getContextPath() %>/js/vendor.js"></script>
<title>MAYBANK</title>
</head>

<body  onload="vendor.nonesaezypay_form_load('<%= EncryptionHelper.encrypt(merchant_id+"") %>', '<%= EncryptionHelper.encrypt(case_id+"") %>')">

<!-- Header -->
<%@ include file="/jsp/common/Header.jsp" %>	
<!-- End Header -->


<div class="row-fluid page">
	<div class="span12">

		<jsp:include page="/jsp/map/include/tab.jsp">
			
			<jsp:param name="active" value='<%=EncryptionHelper.encrypt("recommendation") %>' />
		</jsp:include>
		
		<jsp:include page="/jsp/map/include/recom-tab.jsp">
			
			<jsp:param name="active" value='<%=EncryptionHelper.encrypt("non_esa_ezypay") %>' />
		</jsp:include>
		<form name="form">
		<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
		<div class="control-group">
			
			<div class="controls"  style="float:left;">
				<span style="font-weight: bold;">For Outlet : </span>
				<select id="outlet_id" name="outlet_id" style="width:220px">
					<%= case_outlet_opt%>
				</select>
			</div>
		</div>
		<table class="tbl esa_ezypay_tbl" style="width:100%">
			<tbody class="no-border">
			<tr>
				<td class="bold" colspan="10">ANNUAL CREDIT CARD SALES AND EARNINGS</td>
			</tr>
			<tr>
				<td class="bold" colspan="10">Ezypay Program</td>
			</tr>
			<tr></tr>
			<tr>
				<td class="bold">Merchant Name : <span></span></td>
				<td colspan="9"></td>
			</tr>
			<tr>
				<td></td>
				<td class="bold center">6 months</td>
				<td class="bold center">12 months</td>
				<td class="bold center">18 months</td>
				<td class="bold center">24 months</td>
				<td class="bold center">30 months</td>
				<td class="bold center">36 months</td>
			</tr>
			<tr>
				<td class="right">MDR</td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_mdr6" value="<%= String.format("%,.2f", b6) %>"/></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_mdr12" value="<%= String.format("%,.2f", c6) %>"/></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_mdr18" value="<%= String.format("%,.2f", d6) %>"/></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_mdr24" value="<%= String.format("%,.2f", e6) %>"/></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_mdr30" value="<%= String.format("%,.2f", f6) %>"/></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_mdr36" value="<%= String.format("%,.2f", g6) %>"/></td>
			</tr>
			<tr>
				<td class="right">Ezypay COF</td>
				<td><input class="rightJustified" type="text" id="txt_ezy6" value="1.06" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_ezy12" value="1.94" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_ezy18"  value="2.81" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_ezy24" value="3.69" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_ezy30" value="5.00" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_ezy36" value="5.44" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
			</tr>
			<tr>
				<td class="right">Projected Sales</td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_psales6"  value="<%= String.format("%,.2f", b8) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_psales12"  value="<%= String.format("%,.2f", c8) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_psales18"  value="<%= String.format("%,.2f", d8) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_psales24"   value="<%= String.format("%,.2f", e8) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_psales30"   value="<%= String.format("%,.2f", f8) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_psales36"  value="<%= String.format("%,.2f", g8) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_psalest"  value="<%= String.format("%,.2f", h8) %>"  /></td>
			</tr>
			<tr></tr>
			</tbody>
			
			<tr>
				<td class="bold">Particulars</td>
				<td class="bold center">Amount (RM)</td>
				<td class="bold center">Amount (RM)</td>
				<td class="bold center">Amount (RM)</td>
				<td class="bold center">Amount (RM)</td>
				<td class="bold center">Amount (RM)</td>
				<td class="bold center">Amount (RM)</td>
				<td class="bold center">Total</td>
			</tr>
			<tr>
				<td style="width:22%"></td>
				<td style="width:9%"></td>
				<td style="width:9%"></td>
				<td style="width:9%"></td>
				<td style="width:9%"></td>
				<td style="width:9%"></td>
				<td style="width:9%"></td>
				<td style="width:9%"></td>
				<td class="right no-border" style="width:6%">Visa % : </td>
				<td class="no-border" style="width:9%"><input class="rightJustified" type="text" id="txt_visa" value="<%= String.format("%.2f", j11) %>" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
			</tr>
			<tr>
				<td class="bold">Annual Visa & MasterCard Sales</td>
				<td><input class="rightJustified" type="text" id="txt_vmcsales6" value="<%= String.format("%.2f", b12) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_vmcsales12" value="<%= String.format("%.2f", c12) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()" /></td>
				<td><input class="rightJustified" type="text" id="txt_vmcsales18" value="<%= String.format("%.2f", d12) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()" /></td>
				<td><input class="rightJustified" type="text" id="txt_vmcsales24" value="<%= String.format("%.2f", e12) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()" /></td>
				<td><input class="rightJustified" type="text" id="txt_vmcsales30" value="<%= String.format("%.2f", f12) %>" onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()" /></td>
				<td><input class="rightJustified" type="text" id="txt_vmcsales36" value="<%= String.format("%.2f", g12) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()" /></td>
				<td><input class="rightJustified" type="text" id="txt_vmcsalest" value="<%= String.format("%.2f", h12) %>" readonly="readonly" /></td>
				<td class="right no-border">MC % : </td>
				<td class="no-border"><input class="rightJustified" type="text" id="txt_mc" readonly="readonly"  value="<%= String.format("%.2f", j12) %>"/></td>
			</tr>
			<tr></tr>
			<tr>
				<td class="bold">Annual Visa Card Sales (60%)</td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_vsales6"   value="<%= String.format("%,.2f", b19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_vsales12"   value="<%= String.format("%,.2f", c19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_vsales18"   value="<%= String.format("%,.2f", d19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_vsales24"   value="<%= String.format("%,.2f", e19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_vsales30"   value="<%= String.format("%,.2f", f19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_vsales36"   value="<%= String.format("%,.2f", g19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_vsalest"   value="<%= String.format("%,.2f", h19) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td>On-Us Card Usage</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vonus6"  value="<%= String.format("%,.2f", b16) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vonus12" value="<%= String.format("%,.2f", c16) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vonus18"  value="<%= String.format("%,.2f", d16) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vonus24" value="<%= String.format("%,.2f", e16) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vonus30"  value="<%= String.format("%,.2f", f16) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vonus36"  value="<%= String.format("%,.2f", g16) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vonust"  value="<%= String.format("%,.2f", h16) %>" /></td>
			</tr>
			<tr>
				<td>Gross On-Us Revenue</td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gvonus6"  value="<%= String.format("%,.2f", b17) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gvonus12"  value="<%= String.format("%,.2f", c17) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gvonus18"  value="<%= String.format("%,.2f", d17) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gvonus24"  value="<%= String.format("%,.2f", e17) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gvonus30"  value="<%= String.format("%,.2f", f17) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gvonus36"  value="<%= String.format("%,.2f", g17) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gvonust"  value="<%= String.format("%,.2f", h17) %>" /></td>
			</tr>
			<tr>
				<td colspan="8">Less:</td>
			</tr>
			<tr>
				<td>Cost of Fund</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vcostf6"  value="<%= String.format("%,.2f", b19) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vcostf12"  value="<%= String.format("%,.2f", c19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vcostf18"  value="<%= String.format("%,.2f", d19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vcostf24"  value="<%= String.format("%,.2f", e19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vcostf30"  value="<%= String.format("%,.2f", f19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vcostf36"  value="<%= String.format("%,.2f", g19) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vcostft"  value="<%= String.format("%,.2f", h19) %>" /></td>
			</tr>
			<tr>
				<td>Quarterly Fee (0.04%)</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vquarf6"  value="<%= String.format("%,.2f", b20) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vquarf12"  value="<%= String.format("%,.2f", c20) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vquarf18" value="<%= String.format("%,.2f", d20) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vquarf24"  value="<%= String.format("%,.2f", e20) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vquarf30" value="<%= String.format("%,.2f", f20) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vquarf36" value="<%= String.format("%,.2f", g20) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_vquarft"  value="<%= String.format("%,.2f", h20) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Nett earnings for Visa</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vnettv6"   value="<%= String.format("%,.2f", b21) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vnettv12"  value="<%= String.format("%,.2f", c21) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vnettv18"  value="<%= String.format("%,.2f", d21) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vnettv24"  value="<%= String.format("%,.2f", e21) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vnettv30"  value="<%= String.format("%,.2f", f21) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vnettv36"  value="<%= String.format("%,.2f", g21) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_vnettvt"   value="<%= String.format("%,.2f", h21) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td class="bold">Annual MasterCard Sales (40%)</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcsales6"  value="<%= String.format("%,.2f", b23) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mcsales12"  value="<%= String.format("%,.2f", c23) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcsales18"  value="<%= String.format("%,.2f", d23) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcsales24"  value="<%= String.format("%,.2f", e23) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcsales30"  value="<%= String.format("%,.2f", f23) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mcsales36"  value="<%= String.format("%,.2f", g23) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcsalest"  value="<%= String.format("%,.2f", h23) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td>On-Us Card Usage</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mconus6"  value="<%= String.format("%,.2f", b25) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mconus12" value="<%= String.format("%,.2f", c25) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mconus18" value="<%= String.format("%,.2f", d25) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mconus24" value="<%= String.format("%,.2f", e25) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mconus30" value="<%= String.format("%,.2f", f25) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mconus36" value="<%= String.format("%,.2f", g25) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mconust"  value="<%= String.format("%,.2f", h25) %>" /></td>
			</tr>
			<tr>
				<td>Gross on-us revenue</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gmconus6"  value="<%= String.format("%,.2f", b26) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gmconus12" value="<%= String.format("%,.2f", c26) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gmconus18" value="<%= String.format("%,.2f", d26) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gmconus24" value="<%= String.format("%,.2f", e26) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gmconus30" value="<%= String.format("%,.2f", f26) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gmconus36" value="<%= String.format("%,.2f", g26) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gmconust"  value="<%= String.format("%,.2f", h26) %>" /></td>
			</tr>
			<tr>
				<td colspan="8">Less:</td>
			</tr>
			<tr>
				<td>Cost of fund</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mccostf6"  value="<%= String.format("%,.2f", b28) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mccostf12" value="<%= String.format("%,.2f", c28) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mccostf18" value="<%= String.format("%,.2f", d28) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mccostf24" value="<%= String.format("%,.2f", e28) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mccostf30" value="<%= String.format("%,.2f", f28) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mccostf36" value="<%= String.format("%,.2f", g28) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mccostft"  value="<%= String.format("%,.2f", h28) %>" /></td>
			</tr>
			<tr>
				<td>Quarterly Fee (0.06%)</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcquarf6"  value="<%= String.format("%,.2f", b29) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcquarf12" value="<%= String.format("%,.2f", c29) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mcquarf18" value="<%= String.format("%,.2f", d29) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly" id="txt_mcquarf24"  value="<%= String.format("%,.2f", e29) %>" /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcquarf30" value="<%= String.format("%,.2f", f29) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcquarf36" value="<%= String.format("%,.2f", g29) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcquarft"  value="<%= String.format("%,.2f", h29) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Nett earnings for MasterCard</td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mcnettmc6"  value="<%= String.format("%,.2f", b30) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mcnettmc12" value="<%= String.format("%,.2f", c30) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mcnettmc18" value="<%= String.format("%,.2f", d30) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcnettmc24" value="<%= String.format("%,.2f", e30) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcnettmc30" value="<%= String.format("%,.2f", f30) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_mcnettmc36" value="<%= String.format("%,.2f", g30) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_mcnettmct"  value="<%= String.format("%,.2f", h30) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td class="bold">Amex Sales</td>
				<td><input class="rightJustified" type="text" id="txt_asales6"  value="<%= String.format("%.2f", b32) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_asales12"  value="<%= String.format("%.2f", c32) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_asales18"  value="<%= String.format("%.2f", d32) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_asales24" value="<%= String.format("%.2f", e32) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()" /></td>
				<td><input class="rightJustified" type="text" id="txt_asales30"  value="<%= String.format("%.2f", f32) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
				<td><input class="rightJustified" type="text" id="txt_asales36" value="<%= String.format("%.2f", g32) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_asalest" value="<%= String.format("%.2f", h32) %>"  onkeypress="return vendor.isNumberKey2(event)" onkeyup="vendor.calculate2()"/></td>
			</tr>
			<tr></tr>
			<tr>
				<td>On-Us Card Usage</td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_aonus6"  value="<%= String.format("%,.2f", b34) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_aonus12" value="<%= String.format("%,.2f", c34) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_aonus18" value="<%= String.format("%,.2f", d34) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_aonus24" value="<%= String.format("%,.2f", e34) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_aonus30" value="<%= String.format("%,.2f", f34) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_aonus36" value="<%= String.format("%,.2f", g34) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_aonust"  value="<%= String.format("%,.2f", h34) %>" /></td>
			</tr>
			<tr>
				<td>Gross on-us revenue</td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gaonus6"  value="<%= String.format("%,.2f", b35) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gaonus12" value="<%= String.format("%,.2f", c35) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gaonus18" value="<%= String.format("%,.2f", d35) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gaonus24" value="<%= String.format("%,.2f", e35) %>"  /></td>
				<td><input class="rightJustified" type="text" readonly="readonly"  id="txt_gaonus30" value="<%= String.format("%,.2f", f35) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gaonus36" value="<%= String.format("%,.2f", g35) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly" id="txt_gaonust"  value="<%= String.format("%,.2f", h35) %>" /></td>
			</tr>
			<tr>
				<td colspan="8">Less:</td>
			</tr>
			<tr>
				<td>Cost of fund</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_acostf6"  value="<%= String.format("%,.2f", b37) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_acostf12" value="<%= String.format("%,.2f", c37) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_acostf18" value="<%= String.format("%,.2f", d37) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_acostf24" value="<%= String.format("%,.2f", e37) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_acostf30" value="<%= String.format("%,.2f", f37) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_acostf37" value="<%= String.format("%,.2f", g37) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_acostft"  value="<%= String.format("%,.2f", h37) %>" /></td>
			</tr>
			<tr>
				<td>Royalty (0.58%)</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_aroyalty6"   value="<%= String.format("%,.2f", b38) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_aroyalty12"  value="<%= String.format("%,.2f", c38) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_aroyalty18"  value="<%= String.format("%,.2f", d38) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_aroyalty24"  value="<%= String.format("%,.2f", e38) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_aroyalty30"  value="<%= String.format("%,.2f", f38) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_aroyalty36"  value="<%= String.format("%,.2f", g38) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_aroyaltyt"   value="<%= String.format("%,.2f", h38) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Nett earnings for Amex</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_anetta6"  value="<%= String.format("%,.2f", b39) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_anetta12" value="<%= String.format("%,.2f", c39) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_anetta18" value="<%= String.format("%,.2f", d39) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_anetta24" value="<%= String.format("%,.2f", e39) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_anetta30" value="<%= String.format("%,.2f", f39) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_anetta36" value="<%= String.format("%,.2f", g39) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_anettat"  value="<%= String.format("%,.2f", h39) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td class="bold">Total Earning From Visa, MasterCard & Amex</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcatot6"  value="<%= String.format("%,.2f", b41) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcatot12" value="<%= String.format("%,.2f", c41) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcatot18" value="<%= String.format("%,.2f", d41) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcatot24" value="<%= String.format("%,.2f", e41) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcatot30" value="<%= String.format("%,.2f", f41) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcatot36" value="<%= String.format("%,.2f", g41) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcatott"  value="<%= String.format("%,.2f", h41) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td>Net Profit After Tax</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcanett6"   value="<%= String.format("%,.2f", b43) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcanett12"  value="<%= String.format("%,.2f", c43) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcanett18"  value="<%= String.format("%,.2f", d43) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcanett24"  value="<%= String.format("%,.2f", e43) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcanett30"  value="<%= String.format("%,.2f", f43) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcanett36"  value="<%= String.format("%,.2f", g43) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcanettt"   value="<%= String.format("%,.2f", h43) %>" /></td>
			</tr>
			<tr>
				<td>Less Cost of Debt (4%)</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcadebt6"  value="<%= String.format("%,.2f", b44) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcadebt12" value="<%= String.format("%,.2f", c44) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcadebt18" value="<%= String.format("%,.2f", d44) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcadebt24" value="<%= String.format("%,.2f", e44) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcadebt30" value="<%= String.format("%,.2f", f44) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcadebt36" value="<%= String.format("%,.2f", g44) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcadebtt"  value="<%= String.format("%,.2f", b44) %>" /></td>
			</tr>
			<tr>
				<td>Profit after tax & Cost of Debts</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcataxdebt6"  value="<%= String.format("%,.2f", b45) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcataxdebt12" value="<%= String.format("%,.2f", c45) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcataxdebt18" value="<%= String.format("%,.2f", d45) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcataxdebt24" value="<%= String.format("%,.2f", e45) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcataxdebt30" value="<%= String.format("%,.2f", f45) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcataxdebt36" value="<%= String.format("%,.2f", g45) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcataxdebtt"  value="<%= String.format("%,.2f", b45) %>" /></td>
			</tr>
			<tr>
				<td>Less Cost of Equity (11%)</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaeqt6"  value="<%= String.format("%,.2f", b46) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaeqt12" value="<%= String.format("%,.2f", c46) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaeqt18" value="<%= String.format("%,.2f", d46) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaeqt24" value="<%= String.format("%,.2f", e46) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaeqt30" value="<%= String.format("%,.2f", f46) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaeqt36" value="<%= String.format("%,.2f", g46) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaeqtt"  value="<%= String.format("%,.2f", b46) %>" /></td>
			</tr>
			<tr>
				<td>Economic Profit</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaecon6"  value="<%= String.format("%,.2f", b47) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaecon12" value="<%= String.format("%,.2f", c47) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaecon18" value="<%= String.format("%,.2f", d47) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaecon24" value="<%= String.format("%,.2f", e47) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaecon30" value="<%= String.format("%,.2f", f47) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaecon36" value="<%= String.format("%,.2f", g47) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmcaecont"  value="<%= String.format("%,.2f", b47) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td class="bold">Net margin %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_netmar6"  value="<%= String.format("%,.2f", b50) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_netmar12" value="<%= String.format("%,.2f", c50) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_netmar18" value="<%= String.format("%,.2f", d50) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_netmar24" value="<%= String.format("%,.2f", e50) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_netmar30" value="<%= String.format("%,.2f", f50) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_netmar36" value="<%= String.format("%,.2f", g50) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_netmart"  value="<%= String.format("%,.2f", b50) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Margin on Visa Sales %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmar6"  value="<%= String.format("%,.2f", b51) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmar12" value="<%= String.format("%,.2f", c51) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmar18" value="<%= String.format("%,.2f", d51) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmar24" value="<%= String.format("%,.2f", e51) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmar30" value="<%= String.format("%,.2f", f51) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmar36" value="<%= String.format("%,.2f", g51) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_vmart"  value="<%= String.format("%,.2f", b51) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Margin on MC Sales %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_mcmar6"  value="<%= String.format("%,.2f", b52) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_mcmar12" value="<%= String.format("%,.2f", c52) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_mcmar18" value="<%= String.format("%,.2f", d52) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_mcmar24" value="<%= String.format("%,.2f", e52) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_mcmar30" value="<%= String.format("%,.2f", f52) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_mcmar36" value="<%= String.format("%,.2f", g52) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_mcmart"  value="<%= String.format("%,.2f", b52) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Margin on Amex Sales %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_amar6"  value="<%= String.format("%,.2f", b53) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_amar12" value="<%= String.format("%,.2f", c53) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_amar18" value="<%= String.format("%,.2f", d53) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_amar24" value="<%= String.format("%,.2f", e53) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_amar30" value="<%= String.format("%,.2f", f53) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_amar36" value="<%= String.format("%,.2f", g53) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_amart"  value="<%= String.format("%,.2f", b53) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Total Cost</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tcost6"  value="<%= String.format("%,.2f", b54) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tcost12" value="<%= String.format("%,.2f", c54) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tcost18" value="<%= String.format("%,.2f", d54) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tcost24" value="<%= String.format("%,.2f", e54) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tcost30" value="<%= String.format("%,.2f", f54) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tcost36" value="<%= String.format("%,.2f", g54) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tcostt"  value="<%= String.format("%,.2f", b54) %>" /></td>
			</tr>
			<tr>
				<td class="bold">Total Income</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tinc6" value="<%= String.format("%,.2f", b55) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tinc12" value="<%= String.format("%,.2f", c55) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tinc18" value="<%= String.format("%,.2f", d55) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tinc24" value="<%= String.format("%,.2f", e55) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tinc30" value="<%= String.format("%,.2f", f55) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tinc36" value="<%= String.format("%,.2f", g55) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_tinct" value="<%= String.format("%,.2f", h55) %>"  /></td>
			</tr>
			<tr>
				<td class="bold">Cost to Income Ratio %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_cincr6" value="<%= String.format("%,.2f", b56) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_cincr12" value="<%= String.format("%,.2f", c56) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_cincr18" value="<%= String.format("%,.2f", d56) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_cincr24" value="<%= String.format("%,.2f", e56) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_cincr30" value="<%= String.format("%,.2f", f56) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_cincr36" value="<%= String.format("%,.2f", g56) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_cincrt" value="<%= String.format("%,.2f", h56) %>"  /></td>
			</tr>
			<tr>
				<td class="bold">RRWA (Return on Risk Weighted Assets) %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rrwa6"  value="<%= String.format("%,.2f", b57) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rrwa12" value="<%= String.format("%,.2f", c57) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rrwa18" value="<%= String.format("%,.2f", d57) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rrwa24" value="<%= String.format("%,.2f", e57) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rrwa30" value="<%= String.format("%,.2f", f57) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rrwa36" value="<%= String.format("%,.2f", g57) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rrwat" value="<%= String.format("%,.2f", h57) %>"  /></td>
			</tr>
			<tr>
				<td class="bold">ROE (Return on Equity) %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roe6"  value="<%= String.format("%,.2f", b58) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roe12" value="<%= String.format("%,.2f", c58) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roe18" value="<%= String.format("%,.2f", d58) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roe24" value="<%= String.format("%,.2f", e58) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roe30" value="<%= String.format("%,.2f", f58) %>"  /></td>
				
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roe36" value="<%= String.format("%,.2f", g58) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roet"  value="<%= String.format("%,.2f", b58) %>"  /></td>
			</tr>
			<tr>
				<td class="bold">ROCE (Return on Capital Employed) %</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roce6"  value="<%= String.format("%,.2f", b59) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roce12" value="<%= String.format("%,.2f", c59) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roce18" value="<%= String.format("%,.2f", d59) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roce24" value="<%= String.format("%,.2f", e59) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roce30" value="<%= String.format("%,.2f", f59) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_roce36" value="<%= String.format("%,.2f", g59) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rocet"  value="<%= String.format("%,.2f", b59) %>" /></td>
			</tr>
			<tr></tr>
			<tr>
				<td>RWA</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rwa6"  value="<%= String.format("%,.2f", b61) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rwa12" value="<%= String.format("%,.2f", c61) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rwa18" value="<%= String.format("%,.2f", d61) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rwa24" value="<%= String.format("%,.2f", e61) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rwa30" value="<%= String.format("%,.2f", f61) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rwa36" value="<%= String.format("%,.2f", g61) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_rwat"  value="<%= String.format("%,.2f", b61) %>" /></td>
			</tr>
			<tr>
				<td>Capital Allocated (13%)</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_capall6"  value="<%= String.format("%,.2f", b62) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_capall12" value="<%= String.format("%,.2f", c62) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_capall18" value="<%= String.format("%,.2f", d62) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_capall24" value="<%= String.format("%,.2f", e62) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_capall30" value="<%= String.format("%,.2f", f62) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_capall36" value="<%= String.format("%,.2f", g62) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_capallt"  value="<%= String.format("%,.2f", b62) %>"  /></td>
			</tr>
			<tr>
				<td>Debt (40%)</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_debt6"  value="<%= String.format("%,.2f", b63) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_debt12" value="<%= String.format("%,.2f", c63) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_debt18" value="<%= String.format("%,.2f", d63) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_debt24" value="<%= String.format("%,.2f", e63) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_debt30" value="<%= String.format("%,.2f", f63) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_debt36" value="<%= String.format("%,.2f", g63) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_debtt"  value="<%= String.format("%,.2f", b63) %>" /></td>
			</tr>
			<tr>
				<td>Equity (60%)</td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_eqt6"  value="<%= String.format("%,.2f", b64) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_eqt12"  value="<%= String.format("%,.2f", b64) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_eqt18"  value="<%= String.format("%,.2f", b64) %>" /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_eqt24"  value="<%= String.format("%,.2f", b64) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_eqt30"  value="<%= String.format("%,.2f", b64) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_eqt36"  value="<%= String.format("%,.2f", b64) %>"  /></td>
				<td><input class="rightJustified" type="text"  readonly="readonly"  id="txt_eqtt"   value="<%= String.format("%,.2f", b64) %>"  /></td>
			</tr>
		</table>
		
		
		<div class="row-fluid">
			<div class="span12 btn-control">
				<input id="click_redirect" name="click_redirect" type="hidden" value="" />
				<button type="button" class="btn" id="submit" onclick="vendor.create_ezypay('<%= EncryptionHelper.encrypt(case_id+"") %>', '<%= EncryptionHelper.encrypt(o_id+"") %>')" >Save</button>
			</div>
		</div>
		</form>
	</div>
</div>

<!-- Footer -->
<%@ include file="/jsp/common/Footer.jsp" %>	
<!-- End Footer -->


</body>
</html>